package com.weimob.mcloud.wechatwork.customer.service.user.module.dto.sidebar;

import com.weimob.mcloud.wechatwork.customer.service.user.base.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @Author yu liu   2021/8/30 15:08
 * Version 1.0.0
 **/
@Data
public class SidebarGoodsDTO extends BaseRequest implements Serializable {
    private static final long serialVersionUID = -1277927978648244624L;

    @ApiModelProperty("当前节点vid")
    private Long currentVid;


    @ApiModelProperty("页码")
    @Min(value = 0, message = "pageNum must not less than 0")
    private Integer pageNum;

    @ApiModelProperty("页大小")
    private Integer pageSize;

    @ApiModelProperty("搜索类型：1 title 2 spu 3 sku 4 out sku")
    private Integer searchType;

    @ApiModelProperty("模糊查询内容")
    private String search;

    @ApiModelProperty("商家后台排序 :0-价格   1-库存 3-上下架时间    默认：门店商品创建时间倒序")
    private Integer sort;

    @ApiModelProperty("排序种类：0 顺序 1倒序")
    private Integer sortType;

    @ApiModelProperty("分组ID")
    private Long classifyId;

    @ApiModelProperty("渠道来源 0全部 1自营  2分销")
    private Integer source;

}
